//
//  PYSearchResultCell.m
//  LEVE
//
//  Created by 上官惠阳 on 2017/1/14.
//  Copyright © 2017年 dashuju. All rights reserved.
//

#import "PYSearchResultCell.h"
#import "PYSearchResultModel.h"
#import "UIView+Layer.h"

@implementation PYSearchResultCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.headImgView makeRoundedCorners];

    [self.headImgView addTarget:self action:@selector(tapHeadAction:) forControlEvents:UIControlEventTouchUpInside];
}
- (void)loadCellWithModel:(PYSearchResultModel *)model
{
    self.namelabel.text = model.name;
    self.textLabel.text = model.name;
    self.textLabel.hidden = YES;
}
- (void)tapHeadAction:(UITapGestureRecognizer *)tap
{
    if (_tapHeadBlock) {
        _tapHeadBlock(nil);
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
